/*
 * @Description:
 * @Version: @1.0.0
 * @Autor: YJY
 * @Date: 2021-06-24 08:19:00
 * @LastEditors: YJY
 * @LastEditTime: 2021-06-24 16:45:20
 */

/**
 * @param {string} path
 * @returns {Boolean}
 */
export function isExternal(path) {
  return /^(https?:|mailto:|tel:)/.test(path)
}

/**
 * @description: 校验手机号
 * @param {*} str
 * @return {*}  true || false
 */
export function validMobile(str) {
  return /^1[3-9]\d{9}$/.test(str)
}
